home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games: Greatest Hits 1996 / Amiga Games: Greatest Hits 1996.iso / userbox / publicdomain / xfd / readme < prev    next >
Text File  |  1996-08-03  |  20KB  |  417 lines

  1.                       XFD Package - Release 1.15
  2.                       ==========================
  3.  
  4. COPYRIGHT
  5. ---------
  6. All  parts  of  this  software  package  are  freely  distributable for
  7. noncommercial use.  If you redistribute XFD, you have to keep all files
  8. together.  All programs are copyright by their authors.
  9.  
  10. DISCLAIMER
  11. ----------
  12. The  authors  are  not  liable  for any changes made to any part of the
  13. package, or consequences thereof as they cannot be made responsible for
  14. damages  or  loss  of  data  directly  or  indirectly  caused  by their
  15. software.
  16.  
  17. AUTHORS
  18. -------
  19. Georg Hörmann          - Definition of XFD standard, xfdmaster.library,
  20.                          xfd#? tools, Assembler includes, some external
  21.                          decrunchers.
  22. Anders Melchiorsen     - 'C' includes, protos, pragmas.
  23. Dexter&Bartman/Abyss   - External decrunchers.
  24. WEPL                   - External decrunchers and Oberon includes.
  25. ???                    - External decrunchers.
  26. A. Van Helsing/X-Trade - External decrunchers.
  27. Psygore                - External decrunchers.
  28. Mr.Larmer/Wanted Team  - External decrunchers.
  29. DII                    - External decruncher and Amiga E stuff.
  30.  
  31. INTRODUCTION
  32. ------------
  33. Almost  every  Amiga  user  has  some  crunched files on his/her disks,
  34. either  Powerpacked docs or crunched demos, utilities or whatever.  But
  35. what to do when you need the files to be uncrunched, and you don't call
  36. the cruncher your own (or it doesn't support decrunching)?  Enters XFD.
  37.  
  38. FEATURES
  39. --------
  40. This  software  package allows you to decrunch almost every packed file
  41. known  on the Amiga.  It consists of the xfdmaster.library as the brain
  42. and a couple of programs that offer certain functions to the user.
  43.  
  44. The  xfdmaster.library is a standard Amiga shared, runtime library.  It
  45. works  with  Kickstart  V33+ and offers applications the possibility to
  46. directly support any crunched files.
  47.  
  48. Other  than the predecessor decrunch.library, the xfdmaster.library has
  49. a  more  flexible interface, offers the possibility to decrunch already
  50. loaded  program  segments,  supports  external  decrunchers, is able to
  51. unlink  so-called  4EB9-linked  files and can scan for crunched data in
  52. any memory area.
  53.  
  54. EXTERNAL DECRUNCHERS
  55. --------------------
  56. External  decrunchers  can  be easily written by any programmer who has
  57. knowledge  about the inner workings of a new cruncher.  That way almost
  58. everybody is able to keep the library up-to-date.  External decrunchers
  59. are  stored in "LIBS:xfd/" and xfdmaster.library loads them on startup.
  60. Please  check  out  your own "LIBS:xfd/" drawer and compare it with the
  61. latest  one included in this package.  The slaves from this package are
  62. always  the latest versions.  There exist old external decrunchers that
  63. are  no  longer  required,  please delete them from "LIBS:xfd/" to save
  64. diskspace AND memory.  They are mentioned in "LIBS:xfd/.README.FIRST"
  65.  
  66. ATTENTION
  67. ---------
  68. Although  I  clearly  stated  in the autodocs that external decrunchers
  69. have  to  be fully reentrant (which means they can handle several files
  70. within the same time), some externals are programmed not 100% safe.  If
  71. you  ever  have trouble with XFD, first disable the external slaves and
  72. then try again.  If there's still a problem, send me a bug report.
  73.  
  74. SUBMISSIONS
  75. -----------
  76. You are a programmer who has
  77. - developed external decrunchers for xfdmaster.library?
  78. - written applications that support xfdmaster.library?
  79. You have new crunchers that are not supported yet?
  80. Please send anything of the above to the following address:
  81.  
  82. Georg Hörmann
  83. Martinswinkelstraße 16c
  84. 82467 Garmisch-Partenkirchen
  85. Germany
  86.  
  87. THANKS
  88. ------
  89. Special  thanks  go  out  to  all the people who sent me new crunchers,
  90. external  decrunchers,  bug  reports  or  whatever.  You will find your
  91. names somewhere in the history.
  92.  
  93. TO DO
  94. -----
  95. xfdmaster.library:
  96. - Add new crunchers...
  97.  
  98. xfdDecrunch:
  99. - Fix scan problems with RAM-Disk. Hi Holger ;-)
  100. - Add/remove suffixes to/from filenames. Idea by Axel Folley, sorry
  101.   for not finishing that piece of code for about a year now.
  102.  
  103. HISTORY
  104. -------
  105. XFD 1.15 [xfdmaster.library 37.5]
  106. - Added support for CFP 1.35/1.36 protected files.
  107. - Fixed bug in xfdStripHunks(). It may happen that a hunk_name etc.
  108.   is the very last hunk without any other information after it. In
  109.   this case the old routine crashed. Thanks for the example file to
  110.   Christoph Dietz.
  111. - Added new ProPack strain. Thanks to WEPL for sending the sample.
  112. - Added 68000-fixed version of BOND external slave to the library.
  113.   Thanks to Dirk Stöcker for the bug report.
  114. - Fixed external CP slave. Now it won't produce wrong recognitions
  115.   any longer. Thanks to Holger Wessling and Emmanuel Poirier for
  116.   the example files.
  117.  
  118. XFD 1.14 [xfdmaster.library 37.3]
  119. - Added CPU cache handling code to all routines that manipulate any
  120.   buffers. I hope this will reduce problems with 68040/060 CPUs.
  121. - Replaced several buggy sublibraries by Mr.Larmer/Wanted Team with
  122.   new cleaned-up versions. Thanks for that updates, dude.
  123. - Added new sublibrary (DPRa) and some Amiga E stuff by DII. Thanks!
  124.  
  125. XFD 1.13 [xfdmaster.library 37.2]
  126. - Added segment support to Titanics Cruncher 1.1/1.2, Spike Cruncher,
  127.   ProPack, TurboSqueezer 6.1/8.0 and HQC Cruncher 2.0 slaves.
  128. - Added Master Cruncher 3.0 Data slave, added segment support to
  129.   Master Cruncher 3.0 slave and rewrote parts of the Master Cruncher
  130.   decrunch routines.
  131. - Added new version of xfdPatch with a serious bug fixed. Sorry folks!
  132. - Arhh! Bug fixed in the optimized Crunchmania routines added in 1.12.
  133.   Empty code hunks caused a system crash. Thanks to Holger Wessling
  134.   for the report and the example files.
  135. - Fixed little bug in the StoneCracker 4.04 Data length calculation.
  136.   No crash this time :-) Thanks to Holger again for the example file.
  137. - Added segment support to DragPack 2.52 slave.
  138. - Added XFDPFF_RELMODE flag support to the following slaves: Propack,
  139.   Imploder (Normal/Lib/Overlay) and CrunchMania (Normal/Lib/Simple)!
  140.   As these crunchers already allocate their hunks during LoadSeg(),
  141.   I wrote a hunk manager that checks the memory type of each loaded
  142.   hunk and switches to another area if neccessary.
  143. - Added segment support to Chryseis Cruncher 0.9 and ReloKit 1.0.
  144.   Finally I made it!! All internal reloc slaves support full segment
  145.   decrunching and relocation modes now :-))
  146. - Combined Powerpacker x.x Master/Normal to simple PowerPacker x.x
  147.   slaves. This saves memory and CPU time.
  148. - Added data scan support to LightPack 1.5 and TurtleSmasher 2.00
  149.   Data slaves. Changed CrunchMaster 1.0 type from data to address.
  150. - Added data scan support to ST Cruncher 1.0 Data slave. Now all
  151.   internal data slaves support data scanning!!
  152. - Added Super Cruncher 2.7 slave with buffer and segment support.
  153. - Added Ultimate Packer 1.1 slave with buffer and segment support.
  154. - Added Old ProPack (RNC) slave. Thanks to WEPL for the sourcecode
  155.   and the example files. This slave cannot handle XFDREL_#? as only
  156.   the first hunk is crunched and all others are already relocated at
  157.   decrunch time. Sorry!
  158. - Added SA/SC/SF/SP/SQ Cruncher slave. Here we have a big problem:
  159.   There exist different versions of the SA, SC and SP formats with
  160.   different crunch algorithms. Therefore these will only be scanned
  161.   for, but not decrunched. SF and SQ should work properly. Thanks to
  162.   WEPL for the sourcecode and the example files.
  163. - Added PowerPacker Patch 1.0 slave. This silly tool adds different
  164.   headers to standard PowerPacker 4.0 files. Thanks to Dave Jones
  165.   for sending that stuff.
  166. - Added ExeDescript 1.0 Linker to the internal linker brain. This
  167.   one is a bit special as it just adds a data hunk at the end of a
  168.   file with some text in it. To recognize this stuff, the whole file
  169.   must be in memory. Sorry, but the xfdm_MinLinkerSize field is of
  170.   no use any longer for this type of linker. Thanks to Dave Jones
  171.   for sending lots of example files.
  172.  
  173. XFD 1.12 [xfdmaster.library 37.1]
  174. - Fixed problem in ProPack slave. It may happen that some hunks are
  175.   not crunched in the RNC format but included as plain hunks. This has
  176.   not been supported correctly. Thanks to Dave Jones and John Aadnoy
  177.   for the example files.
  178. - Optimized decrunch speed of CrunchMania slave by factor 50 !!!
  179.   You won't see it with small files, but Holger Wessling sent me two
  180.   files that took several minutes to decrunch with the old routine
  181.   and about 4 seconds with the new one (the file had up to 140 hunks
  182.   and 6200 reloc entries at 700000 bytes). Thanks Holger.
  183. - Added lots of external decrunchers written by Mr.Larmer/Wanted Team.
  184.   Thanks for all the work you had with that stuff.
  185. - Added new utility called xfdPatch. Just use it!
  186. - Added an extra feature to Imploder and CrunchMania slaves:
  187.   they both will decrunch even some modified files now. Thanks to
  188.   Dave Jones for sending the 'The Party IV' 40k intros.
  189. - Added full GNU Packer 1.2 support. Thanks to Mr.Larmer/Wanted Team
  190.   for sending that stuff.
  191. - Added new version of xfdPatch that allows to set relocation modes.
  192. - Added support for TrashEliminator 1.0.
  193. - Added new version of xfdLibInfo.
  194. - Added new functions to xfdmaster.library: xfdScanData(),
  195.   xfdFreeScanList() and xfdObjectType(). The data scanner is based
  196.   on an idea by Holger Wessling. Thanks dude!
  197. - Added new fields to xfdBufferInfo and xfdSegmentInfo structures.
  198.   Read the autodocs for more details about the new behaviour of
  199.   xfdRecogBuffer()/xfdRecogSegment() concerning external slaves.
  200.   This was neccessary as a lot of people sent me files that made
  201.   some trouble with external slaves. Thanks to Axel Folley, Holger
  202.   Wessling, John Aadnoy and all the others for the example files.
  203. - Added new utility called xfdScan that supports the new data scan
  204.   routines.
  205. - Added data scan support and improved data recognition/testing to
  206.   ANC, SoundTracker Song, CrunchMania, DragPack 2.52, GNU Packer,
  207.   IAM (ICE!/ATM5), PMC, StoneCracker, XPK, ProPack, PackIt and
  208.   Imploder data slaves.
  209. - Added new versions of xfdList, xfdDecrunch and xfdPatch.
  210. - Added data scan support for PowerPacker PP20 data. This code is
  211.   a real data analyzer that checks data for proper decrunchability.
  212.   The crypted data PX20 however can not be scanned in deep mode.
  213. - Added segment support to QuickPowerPacker 1.0.
  214. - Added new function xfdInitScanHook() for easy hook management.
  215. - Added ProPackExe external decruncher. Thanks to WEPL for sending
  216.   this new format.
  217.  
  218. XFD 1.11 [xfdmaster.library 36.4]
  219. - Added new versions of xfdDecrunch, xfdList and xfdUnlink with
  220.   several bug fixes and/or new features.
  221. - Fixed support for Hunk_Reloc32Short in xfdTestHunkStructureFlags(),
  222.   xfdRelocate() and xfdStripHunks(). Thanks to WEPL for the report.
  223. - Added new/updated external decrunchers written by WEPL (thanks
  224.   for all your work): Ice_TSM, SSUR, TPWM, BOND, CMP1, LOB, DeCloner.
  225. - Added Oberon include file for xfdmaster.library. Thanks again to
  226.   WEPL for that stuff. Please note that it is written for XFD 1.07
  227.   and therefore a bit old, but you may modify it for your needs.
  228. - Added external decruncher for 4Vx written by Psygore. Thanks to
  229.   Holger Wessling for sending it.
  230. - Added full segment decrunch support to Imploder, Imploder Library
  231.   and Imploder Overlay slaves. No dirty jump-in hacks, but a real
  232.   emulation that also corrects the hunktable entries of overlays.
  233. - Fixed PowerPacker 3.0/4.0 Overlay segment decrunching code.
  234.   The entries in the hunktable haven't been updated.
  235.  
  236. XFD 1.10 [xfdmaster.library 36.3]
  237. - Added recognition and unlink code for Glue 2.2 and Glue 2.3 text
  238.   linkers. You will get the text file and the original executable
  239.   as a result after unlinking such files. Thanks to Markus Schmall
  240.   and Dave Jones for the example files.
  241. - Finally fixed Imploder stuff to work 100% correctly. The new
  242.   method is a bit slower, but doesn't waste any memory any longer.
  243.   The length calculation of the old one was based on a rough guess,
  244.   now it's counted byte by byte. Corrupted data is detected now and
  245.   won't lead to a big crash any longer. The new code also recognizes
  246.   if a hunk was originally data or code.
  247. - Added support for Imploder Overlay files. These have been only
  248.   recognized, but not decrunched. Now the new length calculation
  249.   made it easy to finally implement that stuff. Thanks to Axel
  250.   Folley for all the example files.
  251. - Added new version of xfdDecrunch.
  252.  
  253. XFD 1.09 [xfdmaster.library 36.1]
  254. - Oops! XPK slave set password length to 0. This caused some
  255.   trouble when decrunching XPK encrypted files. I forgot to
  256.   set MaxSpecialLen to -1 as XPK has unlimited password lengths.
  257.   Thanks to the guy (sorry, forgot your name) who called me.
  258. - Fixed xfdTestHunkStructure[New]() and xfdRelocate().
  259.   Those two calls now only support hunk types that may really
  260.   exist in load files and no longer any weird linker stuff.
  261.   Added full support for hunk_reloc32short ($3f7/$3fc).
  262. - Added xfdTestHunkStructureFlags() with XFDTHB_NOOVERLAYS
  263.   to force an error if a file is overlayed.
  264. - Added xfdStripHunks() as an easy possibility to remove
  265.   hunk_name, hunk_symbol and/or hunk_debug from files.
  266. - Extended xfdSlave and xfdMasterBase structures.
  267.   Internal slaves have an ID now and can be replaced by
  268.   external slaves. Minimum buffer size to recognize a
  269.   crunched file can be specified for every slave now.
  270.   The largest buffer size is stored in xfdMasterBase and
  271.   can be used as buffer size for recognition purposes.
  272.   Thanks to Dave Jones and the other guy (see above) for
  273.   the inspiration.
  274. - Added new versions of xfdDecrunch and xfdLibInfo.
  275. - Moved external Chryseis slave inside library.
  276. - Added new version of xfdList.
  277. - Fixed defines in xfdmaster.h from $XYZ to 0xXYZ.
  278. - Added external decrunchers: AXIS, LOB and SF written by
  279.   A. Van Helsing/X-TraDe. Thanks to Holger Wessling for
  280.   sending them to me.
  281. - Fixed ProPack slave. Recognizes another executable header
  282.   now and doesn't crash with several hunk_bss any more.
  283.   Thanks to Markus Schmall for reporting the problem.
  284. - Fixed StoneCracker 4.04 slave. Forgot to support empty
  285.   code and data hunks as old compilers produce them.
  286.   Thanks to Dave Jones for the example file.
  287. - Added StoneCracker 4.03 Data slave and replaced SC 4.04
  288.   decrunch code by the optimized version from 'Cozine'.
  289. - Added QuickPowerPacker 1.0 slave.
  290.   Thanks to Dave again for sending this stuff.
  291. - Added xfdAllocObject() and xfdFreeObject() as a replacement
  292.   for Alloc#?Info() and Free#?Info().
  293. - Added xfdRecogLinker() and xfdUnlink() to support so-called
  294.   4EB9-Linkers and their clones.
  295. - Fixed problem with some PowerPacker 4.0 files. It might have
  296.   happened in one special case that one byte of the processed
  297.   reloc hunk was overwritten before it was reprocessed.
  298.   Using a one-byte prefetch mechanism now fixes this bug.
  299. - Added xfdm_MinLinkerSize field in xfdMasterBase structure.
  300. - Added recognition for 4EB9, 4EF9, UFO and XLink linkers to
  301.   the internal linker brain.
  302. - Added unlink code for 4EB9, 4EF9, UFO and XLink linkers.
  303. - Fixed another problem with PowerPacker 4.0 files. If hunks
  304.   are located in chipmem, PP sets the qualifier in the hunk
  305.   header AND in the hunks themselves. OS 2.0+ doesn't like
  306.   this behaviour very much and crashes immediately. The flag
  307.   will therefore be deleted in the hunks now.
  308.   Thanks to Axel Folley for sending me an example file.
  309. - Fixed problem with SoundTracker songs. Some clever game
  310.   coders use the same identifier (PACK) for their files, but
  311.   certainly another algorithm. I use an enhanced recognition
  312.   now that checks the uncrunched length for valid song sizes.
  313.   Thanks again to Axel Folley for all the example files.
  314. - Added the tool xfdUnlink to the package. This is just a
  315.   simple interface for unlinking linked files.
  316. - Added second type of 4EB9 linker and fixed recognition
  317.   for UFO linker.
  318. - Fixed Imploder decrunch code to support modified files too.
  319.   Some guys tried to prevent XFD and also the Imploder itself
  320.   from unpacking files by changing a data to a code hunk.
  321.  
  322. XFD 1.08 [xfdmaster.library 35.1]
  323. - Added new feature to xfdmaster.library (now version 35):
  324.   Crunchers that require a 16/32 bit key for decrunching are
  325.   supported now. Only neccessary for ProPack (RNC) at the
  326.   moment.
  327. - Added new versions of xfdDecrunch and xfdLibInfo that
  328.   support the new feature.
  329. - Added full support for ProPack, formerly called RNC.
  330.   Now also decrunches executables and key-locked data files.
  331.   Moved the external decruncher inside the library.
  332. - Added support for TetraPack 1.1.
  333. - Added support for HQC Compressor 1.00.
  334. - Added external decrunchers for LZWH and GraftGold.
  335. - Added support for TSK Cruncher, LightPack 1.5 and
  336.   SoundTracker Cruncher 1.0 Exe/Data files.
  337. - Added new tool to the package: HackProPack. This makes it
  338.   possible to decrunch key-locked ProPack data files.
  339. - Re-added Kickstart 1.2/1.3 support to xfdDecrunch.
  340.   Hope everybody is happy now, so am I.
  341. - Added support for segment decrunching to the following
  342.   slaves: DragPack 1.0, StoneCracker 4.00/4.01/4.04,
  343.   CrunchMania Normal/Library/Simple, TNM Cruncher 1.1.
  344. - Revised XPK external decruncher and moved it inside
  345.   xfdmaster.library.
  346. - Moved PMC external decruncher inside the library.
  347. - Debugged arp.library stuff in xfdDecrunch, xfdList
  348.   and HackProPack. Some arp routines behave different from
  349.   dos v37, but it wasn't documented anywhere.
  350. - Added segment support to IAM Packer 1.0 and PackIt 1.0.
  351.  
  352. XFD 1.07 [xfdmaster.library 34.1]
  353. - Added new sublibs for SSUR, TPWM and TSM crunchers.
  354.   Thanks to WEPL for sending them.
  355. - Added RNC2 support to the RNC external decruncher.
  356.   Thanks to WEPL again for sending me the sourcecode.
  357.  
  358. XFD 1.06 [xfdmaster.library 34.1]
  359. - Increased library version to 34 because of new features.
  360.   The V34 library is fully downward compatible to V33 libraries.
  361. - Rewritten xfdGetErrorText() function with lots of new error codes.
  362. - Added xfdTestHunkStructureNew() routine that returns detailed
  363.   error codes.
  364. - Added xfdRelocate() routine for better segment list support.
  365. - Extended xfdSegmentInfo structure for relocation mode support.
  366. - Overworked autodocs for more detailed information.
  367. - Overworked whole 'C' support stuff (includes, protos, pragmas).
  368. - Updated Assembler support files.
  369. - Added external decruncher for PMC files.
  370. - Added support for recognition and decrunching of segments
  371.   to the following slaves:
  372.   - PowerPacker 2.3 command files (all modes)
  373.   - PowerPacker 3.0 command files (all modes)
  374.   - PowerPacker 4.0 command files (all modes)
  375. - Added new version of xfdLibInfo with extended information.
  376. - Added external decrunchers for RNC and FIRE files. Thanks to
  377.   Dexter&BartMan/Abyss for sending me this stuff.
  378. - Added ATN! support to xfdmaster.library. Dexter/Abyss sent me
  379.   an external for this one, but it's just a FImp clone, so I
  380.   added it to the internals.
  381.  
  382. XFD 1.05 [xfdmaster.library 33.6]
  383. - Added decrunch support for StoneCracker 4.04 executables.
  384. - Added external decruncher for XPK files.
  385.  
  386. XFD 1.04 [xfdmaster.library 33.4]
  387. - Added 'C' includes, protos, pragmas. Thanks to Anders Melchiorsen
  388.   for typing all this stuff. Thanks to Brice Allenbrand too. He also
  389.   typed some 'C' stuff, but Anders was 3 days faster. Sorry!
  390. - Removed arp.library from the package as everybody has it anyway.
  391. - Added decrunch support for StoneCracker 4.04 data & address files.
  392.  
  393. XFD 1.03 [xfdmaster.library 33.3]
  394. - Added new version of xfdDecrunch with extended features.
  395.  
  396. XFD 1.02 [xfdmaster.library 33.3]
  397. - Did astonishing speed optimization to CrunchMania decruncher. All
  398.   files with lots of relocs will decrunch about 30 times faster. Thanks
  399.   to Markus Schmall who sent me a file (GadToolsBox with over 8000 [!]
  400.   reloc entries) that took 90 seconds (!) before that code cleanup and
  401.   3 seconds afterwards. Actually he thought XFD would crash, but who
  402.   waits 90 seconds ??? ;-)
  403. - Added Chryseis 0.9 decruncher. This one is implemented as external
  404.   decruncher including sourcecode as an example on how to code that
  405.   kind of thing.
  406. - Added File Imploder (FImp) decruncher.
  407. - Added new version of xfdDecrunch with lots of new features.
  408.  
  409. XFD 1.01 [xfdmaster.library 33.2]
  410. - Added asm includes, autodocs and fd files.
  411. - Final fixes in password code.
  412. - Added new versions of xfdDecrunch and xfdLibInfo.
  413. - Added support for external decrunchers.
  414.  
  415. XFD 1.00 [xfdmaster.library 33.1]
  416. - First public release.
  417.